#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
struct Complex {
    int real;
    int image;
};

void input(Complex &c) {
    cin >> c.real >> c.image;
}

void output(Complex c) {
    cout << c.real << " " << c.image << endl;
}

Complex add(Complex a, Complex b) {
    Complex c = {0, 0};
    c.real = a.real + b.real;
    c.image = a.image + b.image;
    return c;
}

Complex mul(Complex a, Complex b) {
    Complex c = {0, 0};
    c.real = a.real * b.real - a.image * b.image;
    c.image = a.real * b.image + a.image * b.real;
    return c;
}

int main() {
    Complex a, b, c;
    input(a);
    input(b);
    c = mul(a, b);
    output(c);
    return 0;
}